#ifndef ____COMMAND_HPP____
#define ____COMMAND_HPP____

#include<iostream>
#include<vector>
#include<stdio.h>
#include<string>

class Command
{
public:
    Command()
    {}

    ~Command()
    {}

    std::string Start(const std::string& cmd)
    {
        _cmd = cmd;
        std::string _reault;
        auto ptr = popen(_cmd.c_str(),"r");
        

        
        char buffer[1024] = {0};
        while(fgets(buffer,sizeof(buffer),ptr))
        {
            _reault += buffer;
        }
        pclose(ptr);

        return _reault;
    }



private:
    std::string _cmd;
};





#endif